package com.xingfly.model.jpa;

/**
 * 辅助Jpa 查询的对象 不创建数据表 在NotificationRepository中使用。
 * 存储某种类型 和 它的总量
 * Created by SuperS on 2016/12/13.
 */
public class NotifyTypeAndCount {
    //消息类型
    private Integer type;
    //消息数量
    private Long count;

    public NotifyTypeAndCount(Integer type, Long count) {
        this.type = type;
        this.count = count;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "NotifyTypeAndCount{" +
                "type=" + type +
                ", count=" + count +
                '}';
    }
}
